"use strict";

module.exports = function(sequelize, DataTypes) {
  var IncomeInfo = sequelize.define("incomeInfo", {
    // incomeinfoid: { type: DataTypes.STRING, primaryKey: true },
    incomefrom: { type: DataTypes.STRING, allowNull: false },
    incometype: {type: DataTypes.INTEGER, allowNull: false },
    incomecount: {type: DataTypes.INTEGER, allowNull: false },
    incomedec: {type: DataTypes.INTEGER, allowNull: false },
    incometime: {type: DataTypes.DATE, allowNull: false }
  },{
      freezeTableName: false,
      tableName: 'incomeInfo',
      timestamps: false
  });

  return IncomeInfo;
};

